﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Pages/SiteMain.Master" AutoEventWireup="true"
    CodeBehind="AccountInfo.aspx.cs" Inherits="MyOrganizer.Pages.AccountInfo" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
        $(document).ready(function () {
            $('#liAccountInfo').addClass('current');
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:UpdatePanel ID="UpdPnlPass" runat="server">
        <ContentTemplate>
            <h2>
                Change Password
            </h2>
            <div class="form_settings">
                <p>
                    <span>Old Password:</span><input type="text" name="name" value="" id="txtOldPass"
                        runat="server" /></p>
                <p>
                    <span>New Password:</span><input type="text" name="name" value="" id="txtNewPass"
                        runat="server" /></p>
                <p style="padding-top: 15px">
                    <span>&nbsp;</span>
                    <asp:Button ID="btnChangePass" runat="server" CssClass="submit" Text="Save" OnClick="btnChangePass_Click" />
                </p>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdatePanel ID="UpdPnlUser" runat="server">
        <ContentTemplate>
            <h2>
                Change UserName
            </h2>
            <div class="form_settings">
                <p>
                    <span>Old UserName:</span><input type="text" name="name" value="" id="txtOldUser"
                        runat="server" /></p>
                <p>
                    <span>New UserName:</span><input type="text" name="name" value="" id="txtNewUser"
                        runat="server" /></p>
                <p style="padding-top: 15px">
                    <span>&nbsp;</span>
                    <asp:Button ID="btnChangeUser" runat="server" CssClass="submit" Text="Save" OnClick="btnChangeUser_Click" />
                </p>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdatePanel ID="UpdPnlReports" runat="server">
        <ContentTemplate>
            <h2>
                Report
            </h2>
            <div class="form_settings">
                <p>
                    <span>Report Type:</span>
                    <asp:DropDownList ID="ddlReportType" runat="server">
                        <asp:ListItem>Bug</asp:ListItem>
                        <asp:ListItem>Sugestion</asp:ListItem>
                    </asp:DropDownList>
                </p>
                <p>
                    <span>Message:</span><textarea rows="8" cols="50" name="name" id="txtReport" runat="server"></textarea>
                </p>
                <p style="padding-top: 15px">
                    <span>&nbsp;</span>
                    <asp:Button ID="btnReport" runat="server" CssClass="submit" Text="Report" OnClick="btnReport_Click" />
                </p>
            </div>
            <asp:Repeater ID="rptData" runat="server">
                <HeaderTemplate>
                    <table style="width: 100%; border-spacing: 0;">
                        <tr>
                            <th>
                                ReportId
                            </th>
                            <th>
                                Report Type
                            </th>
                            <th>
                                State
                            </th>
                            <th>
                                Message
                            </th>
                        </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                        <td>
                            <%# Eval("ReportId")%>
                        </td>
                        <td>
                            <%# Eval("ReportType")%>
                        </td>
                        <td>
                            <%# Eval("State")%>
                        </td>
                        <td>
                            <%# Eval("Message")%>
                        </td>
                    </tr>
                </ItemTemplate>
                <AlternatingItemTemplate>
                    <tr>
                        <td>
                            <%# Eval("ReportId")%>
                        </td>
                        <td>
                            <%# Eval("ReportType")%>
                        </td>
                        <td>
                            <%# Eval("State")%>
                        </td>
                        <td>
                            <%# Eval("Message")%>
                        </td>
                    </tr>
                </AlternatingItemTemplate>
                <FooterTemplate>
                    </table>
                </FooterTemplate>
            </asp:Repeater>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
